home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 November
/
Chip_2000-11_cd2.bin
/
sharewar
/
Slunec
/
app
/
17
/
_SETUP.1
/
Prevest projekt do slozky dokumentu.pw
< prev
next >
Wrap
Text File
|
2000-08-30
|
1KB
|
41 lines
{*******************************************************}
{ }
{ Programmer's Wizard 2 Pascal Script }
{ (popis jazyka v souboru SCRIPT.DOC) }
{ }
{*******************************************************}
uses ScriptUtils;
function GetVerStr: string;
var
mMajor, mMinor, mRel: Integer;
Begin
GetVersionEx(mMajor, mMinor, mRel);
result := 'v' + IntToStr(mMajor) + '.' + IntToStr(mMinor) + '.' +
IntToStr(mRel);
end;
function GetValidVerStr: string;
Begin
result := 'v2.0.1'; //pozadovana verze PW
end;
var
mDocuments: Array of String;
Begin
if GetValidVerStr <> GetVerStr then //nespravna verze?
ShowMessage('Upozorn∞nφ: tento skript byl napsßn pro Programmers Wizard ' +
GetValidVerStr + '. Momentßln∞ spuÜt∞nß verze: ' + GetVerStr);
if not (IsProjectOpened) then Begin
ShowMessage('P°ed pou₧itφm tohoto skriptu musφ b²t otev°en nprojekt.');
Halt;
end;
//prepsat vsechny soubory z projektu do slozky Dokumenty
EnumProjectFiles(GetCurrentProject, mDocuments);
SetDocuments(mDocuments);
end.